import org.junit.jupiter.api.Test
import java.util.*

/**
 * @Author ZhouHang
 * @Date 24/6/14 周五
 */
class TimerTest {
    @Test fun `Test Timer`() {
        val timer1 = Timer()
        timer1.schedule(object : TimerTask() {
            override fun run() {
                println("1s!")
            }
        }, 1000, 1000)
        Thread.sleep(5000)
    }
}